README file for: “Unions, Class Identification and Policy Attitudes,” Franko and Witko, JOP.

April 6, 2022


* STATA DO FILES *

1. 00_all_clsunions.do : This file will run all Stata code (i.e., all do files listed below) necessary to replicate all results presented in the paper.

2. 01_setup_clsunions_GSS_egp.do : Code to create the EGP measures of occupation-based class.

3. 02_setup_clsunions_GSS.do : Setup code for the GSS data.

4. 03_analysis_clsunions_GSS_irt.do : IRT models of objective class.

5. 04_analysis_clsunions_GSS_subcls.do : Analysis of unions and class using GSS data.

6. 05_analysis_clsunions_YPSS.do : Analysis of unions and class using YPSS data.

7. 06_analysis_clsunions_GSS_redist.do : Analysis of class and policy attitudes using GSS data.

8. 07_analysis_clsunions_CNEP.do : Analysis examining theoretical mechanisms using CNEP data.

9. 08_tables_clsunions.do : Code to create all results tables presented in the paper.


* R SCRIPT FILES *

1. 09_figures_clsunions.R : Code to reproduce all figures presented in the paper.


* DATA FILES *

1. GSS_SubClass.dta : General Social Survey.
    Data and codebook can be found at:
    https://gss.norc.org/get-the-data

2. YPSS_04037.dta : Youth-Parent Socialization Panel Study.
    Data and codebook can be found at:
    https://www.icpsr.umich.edu/web/ICPSR/studies/04037

3. CN3USA2004.Fin.dta : 2004 Comparative National Elections Project.
    Data and codebook can be found at:
    https://u.osu.edu/cnep/surveys/surveys-through-2012/

4. CN4USA2012.Fin.dta : 2012 Comparative National Elections Project.
    Data and codebook can be found at:
    https://u.osu.edu/cnep/surveys/surveys-through-2012/

5. occ10-to-egp-class-crosswalk.csv : Crosswalk file to create the EGP class measure using occupation data from the GSS.
    Data and documentation can be found at:
    https://osf.io/9nkrw/


* SOFTWARE AND OPERATING SYSTEM *

R version 4.1.2 (64-bit)
Stata version 16.1 (64-bit)
macOS version 12.2.1


* R DEPENDENCIES *

haven
ggplot2
grid
gridExtra
dplyr
forcats
ggstance


* STATA DEPENDENCIES *

estout

